﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MagDev.Foundation;

namespace TertiaryModuleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            AppConfig.Helper acHelper = new AppConfig.Helper();
            acHelper.DisplayAppConfigEntries(new Program3AppConfig());
            Console.ReadKey();
        }
    }


    public class Program3AppConfig : AppConfig.Attributes
    {
        public const string Module = "Program3";
        private const string LoggingCategoriesGroup = "Logging";
        private const string LoggingCategoriesKey = "Category";
        public enum LoggingCategories
        {

            [AppConfigModule(Module)]
            [AppConfigGroup(LoggingCategoriesGroup)]
            [AppConfigKey(LoggingCategoriesKey)]
            [AppConfigValue("Program 3 Core")]
            [AppConfigActive(true)]
            Core,   
            [AppConfigModule(Module)]
            [AppConfigGroup(LoggingCategoriesGroup)]
            [AppConfigKey(LoggingCategoriesKey)]
            [AppConfigValue("Program 3 Standards")]
            [AppConfigActive(true)]
            Standards            
        }
        
        private const string SettingsCategoriesGroup = "Settings";
        private const string SettingsCategoriesKey = "Mode";
        public enum SettingsCategories
        {

            [AppConfigModule(Module)]
            [AppConfigGroup(SettingsCategoriesGroup)]
            [AppConfigKey(SettingsCategoriesKey)]
            [AppConfigValue("Program 3 Farm")]
            [AppConfigActive(true)]
            Farm,
            [AppConfigModule(Module)]
            [AppConfigGroup(SettingsCategoriesGroup)]
            [AppConfigKey(SettingsCategoriesKey)]
            [AppConfigValue("Program 3 Sandbox")]
            [AppConfigActive(true)]
            Sandbox
        }
    }
}
